/**
 * 
 */
package de.cbf.cam.dsa.tavern.carte.exceptions;



/**
 * @author Stefan Alter
 *
 */
public class WrongTypeProvidedException extends IllegalArgumentException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7453631450839949213L;

	public WrongTypeProvidedException(String expectedName,String providedName) {
		super("Wrong Type provided" +"\n"+
				"Expected: "+expectedName+"\n"+
				"Provided: "+providedName);		
	}
	public WrongTypeProvidedException(Class<?> expected,Class<?> provided) {
		super("Wrong Type provided" + "\n"+
				"Expected: "+expected.getName()+"\n"+
				"Provided: "+provided.getName());		
	}
	

}
